import Vue from "vue"
import Router from "vue-router"
import { routes } from "./routes.js"

Vue.use(Router)
const VueRouterPush = Router.prototype.push
Router.prototype.push = function push(to) {
  return VueRouterPush.call(this, to).catch(err => err)
}

let router = new Router({ routes })



export default router
